var e = require;
var t = module;
var o = exports;
var n = o,
    i = function (e, t, o, n) {
        var i,
            a = arguments.length,
            r = a < 3 ? t : null === n ? (n = Object.getOwnPropertyDescriptor(t, o)) : n;
        if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n);
        else
            for (var s = e.length - 1; s >= 0; s--)
                (i = e[s]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
        return a > 3 && r && Object.defineProperty(t, o, r), r;
    };
Object.defineProperty(n, "__esModule", {value: !0});
var a = e("AssetsMap"),
    r = e("BundleNames"),
    s = cc._decorator,
    c = s.ccclass,
    l =
        (s.property,
        (function () {
            function e() {}
            var t;
            return (
                (t = e),
                (e.playBtnEffect = function () {
                    var e = game.BundleManager.instance
                        .getBundle(r.default.Public)
                        .get(a.default.PublicBundle.sounds.assetsList.btnClick, cc.AudioClip);
                    this.playEffect(e);
                }),
                (e.playEffect = function (e, t) {
                    void 0 === t && (t = !1), null != e && cc.audioEngine.playEffect(e, !1);
                }),
                (e.playBGM = function (e, o) {
                    void 0 === o && (o = !1),
                        null != e && (this.stopBGM(), (t._bgmAudioID = cc.audioEngine.playMusic(e, o)));
                }),
                (e.stopBGM = function () {
                    t._bgmAudioID >= 0 && (cc.audioEngine.stopMusic(), (t._bgmAudioID = -1));
                }),
                (e.setVolumeSwitch = function (e) {
                    e
                        ? (cc.audioEngine.setMusicVolume(1), cc.audioEngine.setEffectsVolume(1))
                        : (cc.audioEngine.setMusicVolume(0), cc.audioEngine.setEffectsVolume(0));
                }),
                (e.pauseAll = function () {
                    cc.audioEngine.pauseAll();
                }),
                (e.resumeAll = function () {
                    cc.audioEngine.resumeAll();
                }),
                (e._bgmAudioID = -1),
                (t = i([c], e))
            );
        })());
n.default = l;
